<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('库存列表')" />
</head>
<body class="gray-bg">
	<div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="post-form">
					<div class="select-list">
						<ul>
							<li>
								调整物料编码：<input type="text" name="inventoryCode"/>
							</li>
							<li>
								调整物料名称：<input type="text" name="inventoryName"/>
							</li>
							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
							    <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
	        <div class="col-sm-12 select-table table-striped">
			    <table id="bootstrap-table"></table>
			</div>
		</div>
	</div>
	<th:block th:include="include :: footer" />
	<script th:inline="javascript">
		var editFlag = [[${@permission.hasPermi('system:post:edit')}]];
		var removeFlag = [[${@permission.hasPermi('system:post:remove')}]];
		var datas = [[${@dict.getType('sys_normal_disable')}]];
		var prefix = ctx + "system/kcgl";

		$(function() {
		    var options = {
		        url: prefix + "/kctzjlList",
				addKcUrl: prefix + "/add/{id}",
				createUrl: prefix + "/addx",
		        updateUrl: prefix + "/edit/{id}",
		        removeUrl: prefix + "/remove",
		        exportUrl: prefix + "/export",
		        sortName: "updateTime",
		        modalName: "入库",
		        columns: [{
		            checkbox: true
		        },
				{
					field: 'deptId',
					title: '物料所属店面',
					sortable: true
				},
		        {
		            field: 'inventoryCode',
		            title: '物料编码',
		            sortable: true
		        },
		        {
		            field: 'inventoryName',
		            title: '物料名称',
		            sortable: true
		        },
				{
					field: 'adjustId',
					title: '调整类型',
					sortable: true
				},
		        {
		            field: 'adjustNumberq',
		            title: '调整前物料数量',
		            sortable: true
		        },
				{
					field: 'adjustNumber',
					title: '调整数量',
					sortable: true
				},
				{
					field: 'adjustNumberh',
					title: '调整后物料数量',
					sortable: true
				},
		        {
		            field: 'updateTime',
		            title: '调整时间',
					sortable: true
		        },
				{
					field: 'updateBy',
					title: '调整人',
					sortable: true
				},
				{
					field: 'remark',
					title: '调整原因',
					sortable: true
				}
				]
		    };
		    $.table.init(options);
		});
	</script>
</body>
</html>